<?php
/**
 * controller_posts 博客日志控制器
 *
 * @package Movoin Blog
 * @subpackage admin
 *
 */

// {{{ include
FLEA::loadClass ( 'controller_base' );
// }}}

class controller_posts extends controller_base {

	/**
	 * 构造函数
	 *
	 * @return controller_posts
	 */
	function controller_posts() {
		//执行基类中的构造函数
		parent::controller_base();
	}

	function actionIndex() {
		redirect($this->_url('list'));
	}

	/**
	 * 日志列表
	 */
	function actionList() {
		include 'mo_posts.php';
	}

	/**
	 * 发布日志
	 */
	function actionNew() {
		$ui = & FLEA::initWebControls();
		include 'mo_post_edit.php';
	}

	/**
	 * 日志分类
	 */
	function actionCategories() {
		include 'mo_categories.php';
	}

	/**
	 * 日志标签
	 */
	function actionTags() {
		include 'mo_tags.php';
	}

}